﻿namespace AB.ServiceDirectory.BO
{
    using System.Collections.Generic;
    using Dao;
    using Entities;

    /// <summary>
    /// AContactTypeBO Class
    /// </summary>
    public sealed class AContactTypeBO
    {
        /// <summary>
        /// Prevents a default instance of the <see cref="AContactTypeBO"/> class from being created.
        /// </summary>
        private AContactTypeBO() { }

        /// <summary>
        /// Finds the type of all contact.
        /// </summary>
        /// <returns>ContactType list query</returns>
        public static ICollection<ContactType> FindAllContactType()
        {
            return AContactTypeDao.FindAllContactType();
        }

        /// <summary>
        /// Finds the contact type by id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns>ContactType object</returns>
        public static ContactType FindContactTypeById(int id)
        {
            return AContactTypeDao.FindContactTypeById(id);
        }
    }
}